package com.huawei.hwCloudJs.d;

import com.huawei.hwCloudJs.annotation.JSMethod;
import com.huawei.hwCloudJs.core.a.a;

public class c {
    public static boolean a(a aVar) {
        return ((JSMethod) aVar.b().getAnnotation(JSMethod.class)).isOpen();
    }

    public static boolean b(a aVar) {
        return !"".equals(c(aVar));
    }

    public static String c(a aVar) {
        return ((JSMethod) aVar.b().getAnnotation(JSMethod.class)).permission();
    }
}
